import { request } from "../utils/http/request";
import {StoreAddBindRequest} from "./model/store.ts";

// /backend/api/v1/agent/select
export function agentSelectList():Promise<BaseResp<AgentSelectListResp>> {
    return request({
        url: "/business/backend/api/v1/agent/select",
        method: "post",
    });
}

export function CheckPlatformStoreBind(data: CheckPlatformStoreBindReq):Promise<BaseResp<CheckPlatformStoreBindResp>> {
    return request({
        url: "/platform/backend/api/v1/store/checkPlatformStoreBind",
        method: "post",
        data: data,
    });
}

// ReBindStoreByAgent 重新绑定
export function ReBindStoreByAgent(data: ReBindStoreByAgentReq):Promise<BaseResp<any>> {
    return request({
        url: "/platform/api/agent/v1/store/rebinding",
        method: "post",
        data: data,
    });
}

// AgentAddStoreBind
export function AgentAddStoreBind(data: StoreAddBindRequest):Promise<BaseResp<any>> {
    return request({
        url: "/platform/api/agent/v1/store/addBind",
        method: "post",
        data: data,
    });
}